﻿using FanaticRock.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FanaticRock.DownloadManage.Helpers
{
    public static class DownloadItemHelper
    {  
        ///<summary>下载项是否已位于本地。</summary>
        public static bool GetLocalSourceInLocalStorage(DownloadItem downloadItem)
        {
            if (System.IO.File.Exists(downloadItem.LocalPath))
            {
                if (downloadItem.IsCompleted) return true;
                else return false;
            }
            else
            {
                return false;
            }
        }

    }
}
